<include file="Public/min-header" />
<div class="wrapper">
    <include file="Public/breadcrumb" />
    <section class="content">
        <div class="container-fluid">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title"><i class="fa fa-list"></i> 用户列表</h3>
                </div>
                <div class="panel-body">
                    <div class="navbar navbar-default">
                        <form id="search-form2" class="navbar-form form-inline"  method="post" action="{:U('AppDistribut/record')}">
                            <div class="form-group">
                                <label for="input-order-id" class="control-label">用户ID:</label>
                                <div class="input-group">
                                    <input type="text" class="form-control" id="user_id" placeholder="用户id" value="" name="user_id" />
                                </div>
                                <label for="input-order-id" class="control-label">收款账号:</label>                
                                <div class="input-group">
                                    <input type="text" class="form-control" id="input-order-id" placeholder="收款账号" value="" name="account_bank" />                    
                                </div>
                                <label for="input-order-id" class="control-label">收款账户名:</label>                
                                <div class="input-group">
                                    <input type="text" class="form-control" id="input-order-id" placeholder="收款账户名" value="" name="account_name" />                    
                                </div>
                            </div>
                            <div class="form-group">    
                                <button class="btn btn-primary" id="button-filter search-order" onclick="ajaxGetTable('search-form2', 1);" type="button"><i class="fa fa-search"></i> 筛选</button>    
                            </div>                                 
                        </form>  
                    </div>
                    <div id="ajax_return">

                    </div>
                </div>
            </div>
        </div>
    </section>
</div>
<script>
    $(document).ready(function () {
        ajaxGetTable('search-form2', 1);

    });

// ajax 抓取页面
    function ajaxGetTable(tab, page) {
        cur_page = page; //当前页面 保存为全局变量
        $.ajax({
            type: "POST",
            url: "/index.php/Admin/AppDistribut/ajaxRecord/p/" + page,
            data: $('#' + tab).serialize(),
            success: function (data) {
                $("#ajax_return").html('');
                $("#ajax_return").append(data);
            }
        });
    }

</script>
</body>

</html>
